package com.example.makerspace.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.makerspace.domain.DemandDO;
import com.example.makerspace.vo.ProductRecommendationVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DemandMapper extends BaseMapper<DemandDO> {

    List<DemandDO>  getDemandDOSByCondition(Page<DemandDO> page,@Param("demandName")String demandName, @Param("category")String category,
                                            @Param("showNumber") String showNumber, @Param("praise")String praise,
                                            @Param("collection")String collection);

    List<DemandDO> getDemandDOS(Page<DemandDO> page);
}
